package com.steakliu.springasync.scheduler;

import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * 功能说明： Spring任务调度
 * <p>
 * Original @Author: steakliu-刘牌, 2022-09-19  23:22
 * <p>
 * Copyright (C)2020-2022  steakliu All rights reserved.
 */
@Component
public class SpringScheduler {

    @Scheduled(cron = "0/2 * * * * ?" )
    public void schedule(){
        System.out.println("start schedule ......");
    }
}
